package com.fenglingl.trade;

import com.fengling.api.config.FeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableFeignClients (basePackages = "com.fengling.api.client",defaultConfiguration = FeignConfig.class)//启动类上添加注解，启动OpenFeign功能
                                                             //defaultConfiguration = FeignConfig.class 配置openfeign请求拦截器
@MapperScan("com.fengling.trade.mapper")
@SpringBootApplication
public class TradeApplication {
    public static void main(String[] args) {
        SpringApplication.run(TradeApplication.class, args);
    }
}